import Baisc from '@/layout/basic/index.vue'
import Blank from '@/layout/blank/index.vue'
import Passport from '@/layout/passport/index.vue'
const staticRouter: Array<any> = [
    {
        path: '/passport',
        component: Passport,
        children: [
            {
                path: 'login',
                component: () => import('@/pages/passport/login/index.vue'),
                name: 'Login',
                meta: { title: '登录' }
            }
        ]
    },
    {
        path: '/404',
        name: '404',
        component: () => import('@/pages/error/404.vue')
    },
    {
        path: '',
        redirect: "dashboard",
        component: Baisc,
        children: [
            {
                path: 'dashboard',
                component: () => import('@/pages/dashboard/index.vue'),
                name: 'Dashboard',
                meta: { title: '首页', icon: "dashboard", affix: true }
            }
        ]
    },
    {
        path: '/system',
        component: Baisc,
        children: [
            {
                path: 'role',
                component: () => import('@/pages/system/role/index.vue'),
                name: 'Role',
                permission: 'sys:role',
                meta: { title: '角色管理', permission: 'sys:role', }
            },
            {
                path: 'menu',
                component: () => import('@/pages/system/menu/index.vue'),
                name: 'Menu',
                permission: 'sys:menu',
                meta: { title: '菜单管理', permission: 'sys:menu', }
            },
            {
                path: 'user',
                component: () => import('@/pages/system/user/index.vue'),
                name: 'User',
                permission: 'sys:user',
                meta: { title: '用户管理', permission: 'sys:user', }
            },
            
        ]
    }, {
        path: '/resource',
        component: Baisc,
        children: [
            {
                path: 'photo',
                component: () => import('@/pages/resource/photo/index.vue'),
                name: 'Photo',
                permission: 'resource:photo',
                meta: { title: '图库管理', permission: 'resource:photo', }
            },
            {
                path: 'video',
                component: () => import('@/pages/resource/video/index.vue'),
                name: 'Video',
                permission: 'resource:video',
                meta: { title: '视频库管理', permission: 'resource:video', }
            }
        ]
    }
]

export default staticRouter;